<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/base/taglibs.jsp"%>
<%@include file="/WEB-INF/jsp/base/head.jsp"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>新增广告</title>
</head>
<body>
<div class="center_main"></div>
  <div id="page-top">
  	<span>新增广告</span>
  	<b></b><i></i>
  </div>
  
    <div id="page">

       <s:form action="advertiseAction!advertiseAdd.do" namespace="/adver" name="form1" method="post" enctype="multipart/form-data">
           <div class="edit-wapper">
		       <label class="lab">广告标题：</label>
		       <input type="text" name="advertiseBizBean.title" class="inputText" maxlength="50" value="${advertiseBizBean.title}" style="width: 300px" />
		       <label class="error" >*&nbsp;&nbsp;<s:property value="%{errors['title'][0]}"/></label>
	       </div>
	       <div class="edit-wapper">
	       		<label class="lab">广告URL：</label>
	       		<input type="text" name="advertiseBizBean.url" class="inputText" maxlength="250" value="${advertiseBizBean.url}" style="width: 300px" />
	       		<label class="error" >*&nbsp;&nbsp;<s:property value="%{errors['url'][0]}"/></label>
	       </div>
	       
	        <div class="edit-wapper">
	        	<label class="lab">图片：</label>
	        	<s:file name="files"></s:file>
	        	<label class="error" >*&nbsp;&nbsp;<s:property value="%{errors['files'][0]}"/></label>
	        </div>
	        <div class="edit-wapper">
	        	<label class="lab">广告内容：</label>
	        	<textarea style="width: 300px" name="advertiseBizBean.content" class="inputText" onkeyup="return isMaxLen(this)" >${advertiseBizBean.content}</textarea>
	        	<label class="error" >*&nbsp;&nbsp;<s:property value="%{errors['content'][0]}"/></label>
	        </div>
	        <div class="edit-wapper">
	        	<label class="lab">广告类型：</label>
	        	<s:select list="codes" listKey="code" listValue="text" name="advertiseBizBean.type" value="%{advertiseBizBean.type}"></s:select>
	        	<label class="error" >*&nbsp;&nbsp;<s:property value="%{errors['type'][0]}"/></label>
	        </div>
	        <div class="edit-wapper">
	        	<label class="lab">排序：</label>
	        	<input type="text" name="advertiseBizBean.orderBy" class="inputText" maxlength="1" value="${advertiseBizBean.orderBy}" style="width: 300px" />
	        	<label class="error" >*&nbsp;&nbsp;<s:property value="%{errors['orderBy'][0]}"/></label>
	        </div>
	       
           <div class="btn-wapper">
           	   <s:submit cssClass="form-btn" value="保存" id="btnEnter"/>
           	   <s:submit cssClass="form-btn" value="返回" action="advertiseAction!advertiseList"></s:submit>
	       </div>
       </s:form>
       
    </div>
    <div id="page-bottom">
     <b></b><i></i>
    </div> 
</body>
</html>